class BookModel {
  final String bookUrl;
  final String title;
  final String author;
  String description;
  String imageUrl;
  String bookType;

  BookModel(
      {this.imageUrl, this.bookUrl, this.title, this.description, this.author});

  BookModel.fromJson(Map json)
      : imageUrl = json["imageUrl"],
        bookUrl = json["bookUrl"],
        title = json["title"],
        description = json["description"],
        author = json["author"],
        bookType = json["bookType"];

  Map toJson() {
    return {
      "imageUrl": imageUrl,
      "bookUrl": bookUrl,
      "title": title,
      "description": description,
      "author": author
    };
  }
}
